package api.login;

import dto.Dto;
import dto.GetAdmin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import pojo.Admin;

import java.util.List;
import java.util.Map;


public interface LoginApi {

    /**根据用户账号查询用户信息*/
    @RequestMapping("/selectadmin")
    Dto<Admin> selectadmin(@RequestParam(value = "username") String username);

    /**查询用户权限*/
    @RequestMapping("/selectAdminPer")
    List selectAdminPer(@RequestParam(value = "adminId") String adminId);

    @RequestMapping("/getAdmin1")
    List getAdmin1(@RequestBody Map<String,Object> map);

    @RequestMapping("/updateAdmin")
    int updateAdmin(@RequestBody List<GetAdmin> list);

}
